package com.example.depcontrol.mapper;

import com.example.depcontrol.pojo.Emp;
import com.example.depcontrol.pojo.PageBean;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface EmpMapper {

    List<Emp> page(String name, Short gender, LocalDate begin, LocalDate end);

    void deleteByIdAfter(List<Integer> ids);

    void deleteByDeptId(Integer deptId);

    void addNewEmp(Emp emp);

    Emp getById(Integer id);

    void updateEmp(Emp emp);

    Emp getByUsernameAndPassword(Emp emp);
}
